package cn.liumouren.tool.pad.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 窗口(Window)表实体类
 *
 * @author daniel liu
 */
@Data
@TableName("mh_window")
public class Window implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String windowId;
    /**
     * 窗口名称
     */
    private String name;
    /**
     * 创建者id
     */
    private String founderId;
    /**
     * 窗口所有者id
     */
    private String ownerId;
    /**
     * 所属canteen id
     */
    private String canteenId;
    /**
     * 窗口图片
     */
    private String windowPicUrls;
    /**
     * 描述
     */
    private String description;
    /**
     * 位置
     */
    private String location;
    /**
     * 营业时间
     */
    private String businessTime;
    /**
     * 热度
     */
    private Integer hot;
    /**
     * 关注数
     */
    private Integer follower;
    /**
     * 是否允许加入
     */
    private Integer allowJoin;
    /**
     * 窗口状态
     */
    private Integer state;
    /**
     * 添加时间
     */
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime addTime;
}